namespace Digitalmes.Domain.Entities.Mes.Calendars;

/// <summary>
/// 排班计划
/// </summary>
[SugarTable("cal_plan")]
public sealed class CalPlan : AuditedEntity
{
    /// <summary>
    /// 计划编号
    /// </summary>
    [NotNull]
    public string? Code { get; set; }

    /// <summary>
    /// 计划名称
    /// </summary>
    [NotNull]
    public string? Name { get; set; }

    /// <summary>
    /// 开始日期
    /// </summary>
    public DateTime StartDate { get; set; }

    /// <summary>
    /// 结束日期
    /// </summary>
    public DateTime EndDate { get; set; }

    /// <summary>
    /// 轮班方式，1->白班；2->两班倒；3->三班倒
    /// </summary>
    public int ShiftType { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}
